package com.glela.platform.mapper;

import org.apache.ibatis.annotations.Param;

import com.glela.platform.model.Guest;

/**
 * 
 * @author liujie 
 */
public interface CGuestMapper {
	
	Guest selectByCode(@Param("code")String code);
	
	int update(Guest guest);
	
	int insert(Guest guest);

	/**
	 * 保存设备日活日志 add by liujie
	 * 
	 * @param guestId
	 * @param userId
	 * @param located
	 * @param ip
	 * @param channel 
	 * @return
	 */
	int insertActiveLog(@Param("guestId")String guestId, @Param("userId")Long userId, 
			@Param("located")String located, @Param("ip")String ip,
			@Param("channel")String channel);


}
